<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">
    <table class="table">
        <tr>
            <th>ID</th>
            <th>角色名称</th>
            <th>角色描述</th>
            <th>开启状态</th>
            <th>操作</th>
        </tr>
        <foreach name="roles" item="v">
            <tr>
                <td>{$v.id}</td>
                <td>{$v.name}</td>
                <td>{$v.remark}</td>
                <td><if condition="$v['status']">开启<else/>关闭</if></td>
            <td>
                <a href="{:U('Admin/Rbac/access',array('rid'=>$v['id']))}">配置权限</a>|
                <a onclick="return confirm('是否确定要删除?');" href="{:U('Admin/Rbac/deleteRole',array('rid'=>$v['id']))}">删除角色</a>
            </td>
            </tr>
        </foreach>
    </table>
</block>
